package com.pyl.devtools.swagger;

import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;

/**
 * @author 灵魂贰婶
 * @date 2018/12/9
 */
@Controller
@Api(value = "这是一个接口类描述")
public class SwaggerController {

	@GetMapping("/dev/swagger")
	@RequiresPermissions("/dev/swagger")
	@ApiOperation(value = "这是一个方法说明")
	@ApiImplicitParams({
			@ApiImplicitParam(paramType = "指定参数放在哪个地方。", name = "参数名", dataType = "参数类型", required = false, value = "说明参数", defaultValue = "参数的默认值") })
	public String index() {
		return "redirect:/swagger-ui.html";
	}
}
